home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14139 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: fas-news.harvard.edu!nucleus!robison
  2. From: robison@nucleus.harvard.edu (Keith Robison)
  3. Newsgroups: comp.lang.smalltalk,comp.object,comp.lang.c++,comp.lang.java
  4. Subject: Re: The Good, the Bad, the Ugly, and the Wicked ...
  5. Followup-To: comp.lang.smalltalk,comp.object,comp.lang.c++,comp.lang.java
  6. Date: 28 Mar 1996 20:15:25 GMT
  7. Organization: Harvard University, Cambridge, Massachusetts
  8. Message-ID: <4jes0t$gth@decaxp.HARVARD.EDU>
  9. References: <31570B8E.5A12@vmark.com> <4je5rq$7qg@mimas.brunel.ac.uk>
  10. NNTP-Posting-Host: nucleus.harvard.edu
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Francesco Fantauzzi (mapgfgf@brunel.ac.uk) wrote:
  14. : Jeff Sutherland <jsutherland@vmark.com> wrote:
  15.  
  16. : A language offering automatic garbage collection disqualifies itself for 
  17. : at least two streams of applications:
  18.  
  19. : 1) those requiring a garbage collection, but one different from the one 
  20. : "built" into the language
  21.  
  22. : 2) those requiring that you DON'T do any automatic garbage collection.
  23.  
  24. : I belive that, for instance, real-time applications fit the second 
  25. : stream.
  26.  
  27. This seems to be a common sentiment.  I know almost nothing about g.c.,
  28. but I know enough to know this sentiment is wrong.  The fact that
  29. someone is working on a real-time implementation of Java is strong
  30. evidence.  It has also been pointed out by people who appear understand
  31. g.c. that non-g.c. systems such as C cannot be inherently relied
  32. upon in real-time applications; calls to the memory allocation
  33. system (malloc or new) may not have defined time bounds.
  34.  
  35. : A language that is proposed as "general purpose" shouldn't offer 
  36. : "compulsory" garbage collection (g.c.). A general purpose language should 
  37. : give you a chance to implement the g.c. you like the most. 
  38.  
  39. Alternatively, you can rely on people who really know g.c. to
  40. implement one for you, and then you pick the language _implementation_
  41. which has the right g.c. characteristics.  
  42.  
  43. An awful lot of the C & C++ software out there argues against 
  44. encouraging every programmer to do their own memory management;
  45. the truth is, most programmers get it wrong at least some of the time.
  46.  
  47. Keith Robison
  48. Harvard University
  49. Department of Molecular & Cellular Biology
  50. Department of Genetics 
  51.  
  52. robison@mito.harvard.edu 
  53.  
  54.  
  55.